package com.neuedu.funlifebbs.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 用户类 保存用户信息
 * 
 * @author myh
 * @version 2019年8月16日下午7:57:34
 *
 */
public class Users {
	private Integer id;
	/**
	 * 账号
	 */
	private String name;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 昵称
	 */
	private String nickname = "user";
	/**
	 * 性别
	 */
	private char sex = '男';
	/**
	 * 头像
	 */
	private String picture = "/funlifebbs/WebContent/static/images/touxiang.jpg";
	/**
	 * 邮箱
	 */
	private String email = "";
	/**
	 * 个人简介
	 */
	private String introduction = "";
	/**
	 * 职业
	 */
	private String profession = "";
	/**
	 * 积分
	 */
	private int integral = 50;
	/**
	 * 权限
	 */
	private int permissions = 0;
	/**
	 * 状态
	 */
	private int status = 0;
	/**
	 * 发布的帖子数
	 */
	private int topicCount = 0;
	/**
	 * 注册时间
	 */
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date registerTime;
	/**
	 * 未读消息数
	 */
	private int newsCount = 0;
	/**
	 * 勋章
	 */
	private Honors honor;
	/**
	 * 一对多 ---> 一个用户可以发布多个帖子
	 */
	private List<Topics> userTopics = new ArrayList<>();
	/**
	 * 一对多 ---> 一个用户可以发表多条评论
	 */
	private List<Comments> userComments = new ArrayList<>();
	/**
	 * 一对多 ---> 一个用户可以拥有多个消息
	 */
	private List<News> userNews = new ArrayList<>();

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the nickname
	 */
	public String getNickname() {
		return nickname;
	}

	/**
	 * @param nickname
	 *            the nickname to set
	 */
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	/**
	 * @return the sex
	 */
	public char getSex() {
		return sex;
	}

	/**
	 * @param sex
	 *            the sex to set
	 */
	public void setSex(char sex) {
		this.sex = sex;
	}

	/**
	 * @return the picture
	 */
	public String getPicture() {
		return picture;
	}

	/**
	 * @param picture
	 *            the picture to set
	 */
	public void setPicture(String picture) {
		this.picture = picture;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email
	 *            the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @return the introduction
	 */
	public String getIntroduction() {
		return introduction;
	}

	/**
	 * @param introduction
	 *            the introduction to set
	 */
	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	/**
	 * @return the profession
	 */
	public String getProfession() {
		return profession;
	}

	/**
	 * @param profession
	 *            the profession to set
	 */
	public void setProfession(String profession) {
		this.profession = profession;
	}

	/**
	 * @return the integral
	 */
	public int getIntegral() {
		return integral;
	}

	/**
	 * @param integral
	 *            the integral to set
	 */
	public void setIntegral(int integral) {
		this.integral = integral;
	}

	/**
	 * @return the permissions
	 */
	public int getPermissions() {
		return permissions;
	}

	/**
	 * @param permissions
	 *            the permissions to set
	 */
	public void setPermissions(int permissions) {
		this.permissions = permissions;
	}

	/**
	 * @return the status
	 */
	public int getStatus() {
		return status;
	}

	/**
	 * @param status
	 *            the status to set
	 */
	public void setStatus(int status) {
		this.status = status;
	}

	/**
	 * @return the topicCount
	 */
	public int getTopicCount() {
		return topicCount;
	}

	/**
	 * @param topicCount
	 *            the topicCount to set
	 */
	public void setTopicCount(int topicCount) {
		this.topicCount = topicCount;
	}

	/**
	 * @return the registerTime
	 */
	public Date getRegisterTime() {
		return registerTime;
	}

	/**
	 * @param registerTime
	 *            the registerTime to set
	 */
	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}

	/**
	 * @return the newsCount
	 */
	public int getNewsCount() {
		return newsCount;
	}

	/**
	 * @param newsCount
	 *            the newsCount to set
	 */
	public void setNewsCount(int newsCount) {
		this.newsCount = newsCount;
	}

	/**
	 * @return the honor
	 */
	public Honors getHonor() {
		return honor;
	}

	/**
	 * @param honor
	 *            the honor to set
	 */
	public void setHonor(Honors honor) {
		this.honor = honor;
	}

	/**
	 * @return the userTopics
	 */
	public List<Topics> getUserTopics() {
		return userTopics;
	}

	/**
	 * @param userTopics
	 *            the userTopics to set
	 */
	public void setUserTopics(List<Topics> userTopics) {
		this.userTopics = userTopics;
	}

	/**
	 * @return the userComments
	 */
	public List<Comments> getUserComments() {
		return userComments;
	}

	/**
	 * @param userComments
	 *            the userComments to set
	 */
	public void setUserComments(List<Comments> userComments) {
		this.userComments = userComments;
	}

	/**
	 * @return the userNews
	 */
	public List<News> getUserNews() {
		return userNews;
	}

	/**
	 * @param userNews
	 *            the userNews to set
	 */
	public void setUserNews(List<News> userNews) {
		this.userNews = userNews;
	}

}
